<?php

/**

 * Created by PhpStorm.

 * User: Administrator

 * Date: 2018/3/23 0023

 * Time: 下午 16:15

 */



namespace app\admin\model;



use \think\Model;

class Goods extends Model

{

    public function profile()

    {

        return $this->hasOne('Profile')->field('agent_id,grade,charge_ratio');

    }





}